#ifndef CATEGORYINFO_H
#define CATEGORYINFO_H
#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QJsonObject>

class CategoryInfo
{
public:
    CategoryInfo();

private:
    int             m_nKey;
    QString         m_strName;

public:
    QString         GetName(){return m_strName;}
    void            SetName(QString name){m_strName = name;}

    int             GetKey(){return m_nKey;}
    void            SetKey(int key){m_nKey = key;}

public:
    bool WriteXML(QXmlStreamWriter &writer);
    bool ReadXML(QXmlStreamReader &reader);
};

#endif // CATEGORYINFO_H
